package com.link.base.base.serviceprojectnew.service;

import com.link.base.base.serviceprojectnew.dao.mybatis.mapper.ProjectTeamMapper;
import com.link.base.base.serviceprojectnew.model.Project;
import com.link.base.base.serviceprojectnew.model.ProjectTeam;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author unknown
 * @date unknown
 * @comments 项目成员
 */
@Service
public class ProjectTeamServiceImpl extends BasicServiceImpl<ProjectTeam> implements ProjectTeamService {
    @Resource
    private ProjectTeamMapper projectTeamMapper;

    @Override
    public BasicMapper<ProjectTeam> getBasicMapper() {
        return projectTeamMapper;
    }


    @Override
    public List<ProjectTeam> queryPublishDevelopersListPage(Project project) {
        return projectTeamMapper.queryPublishDevelopersList(project);
    }

    @Override
    public List<ProjectTeam> queryUnSelectMemberInProjectManagerPage(Project project) {
        return projectTeamMapper.queryUnSelectMemberInProjectManagerPage(project);
    }

    @Override
    public List<ProjectTeam> queryBugDevelopersListPage(Project project) {
        return projectTeamMapper.queryBUGDevelopersListPage(project);
    }
}
